package com.nand.blockdemo.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.nand.blockdemo.R;
import com.nand.blockdemo.bean.FeekItemBean;


public class FeekAdapter extends BaseQuickAdapter<FeekItemBean, BaseViewHolder> {


    public FeekAdapter() {
        super(R.layout.item_feek_layout);
    }

    @Override
    protected void convert(BaseViewHolder helper, FeekItemBean item) {
        String state = "";
        switch (item.getState()) {
            case 1:
                state="待处理";
                break;
            case 2:
                state="待确认";
                break;
            case 3:
                state="已完成";
                break;
        }

        helper.setText(R.id.textView, item.getFeedbackoid())
                .setText(R.id.textView1, state)
                .setText(R.id.textView2, item.getTitle())
                .setText(R.id.textView3, item.getType())
                .setText(R.id.textView4, item.getModuleTitle() + "/" + item.getPageTitle())
//                .setText(R.id.textView5, item.getDepartName() + "/" + item.getUserName1())
                .setText(R.id.textView6, item.getCreatedtime());

    }
}
